home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
pasprog.EXE
/
NOTE2FRQ.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-06-20
|
287b
|
20 lines
unit frq;
interface
function note2freq(note:byte):real;
implementation
function note2freq(note:byte):real;
var
nr : real;
fr : real;
begin
nr:=note;
fr:=440*(exp(((nr-57)/12)*ln(2)));
note2freq:=fr;
end;
end.